package com.pajk.user.dal.model;

import com.pajk.user.model.User;
import com.pajk.user.model.enums.*;

import java.sql.Date;

/**
 * @author Haomin
 */
public class UserDO extends User {

    public UserDO(Long id){
        super(id);
    }
    public UserDO(){
        super();
    }

    public UserDO(User user){
        setId(user.getId());
        setCredits(user.getCredits());
        setMobile(user.getMobile());
        setUserStatus(user.getUserStatus());
        setWanliCredits(user.getWanliCredits());
        setAvatar(user.getAvatar());
        setNick(user.getNick());
        setBirthday(user.getBirthday());
        setBloodType(user.getBloodType());
        setCertId(user.getCertId());
        setCertType(user.getCertType());
        setHeight(user.getHeight());
        setPassword(user.getPassword());
        setPhysique(user.getPhysique());
        setRole(user.getRole());
        setWanliId(user.getWanliId());
        setWeight(user.getWeight());
        setYizhangId(user.getYizhangId());
        seGender(user.getGender());
        setGmtCreate(user.getGmtCreate());
        setGmtUpdate(user.getGmtUpdate());
    }

    public void setId(Long id) {
        super.setId(id);
    }
    public void setMobile(Long mobile) {
        super.setMobile(mobile);
    }
    public void setCredits(Integer credits) {
        super.setCredits(credits);
    }
    public void setWanliCredits(Integer wanliCredits) {
        super.setWanliCredits(wanliCredits);
    }
    public void setUserStatus(UserStatus userStatus) {
        super.setUserStatus(userStatus);
    }
    public void seGender(Gender gender) {
        super.setGender(gender);
    }

}
